<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Livox SDK API: fmt::v5::basic_cstring_view&lt; Char &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="1.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Livox SDK API
   &#160;<span id="projectnumber">V2.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classfmt_1_1v5_1_1basic__cstring__view.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classfmt_1_1v5_1_1basic__cstring__view-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">fmt::v5::basic_cstring_view&lt; Char &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="posix_8h_source.html">posix.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad21a04a526524ac3477761399a792fda"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html#ad21a04a526524ac3477761399a792fda">basic_cstring_view</a> (const Char *s)</td></tr>
<tr class="separator:ad21a04a526524ac3477761399a792fda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56c61688f005a3f7495d45b443d78d1c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html#a56c61688f005a3f7495d45b443d78d1c">basic_cstring_view</a> (const std::basic_string&lt; Char &gt; &amp;s)</td></tr>
<tr class="separator:a56c61688f005a3f7495d45b443d78d1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fd9fc51eb41ceeae397a70712a68af5"><td class="memItemLeft" align="right" valign="top">const Char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html#a3fd9fc51eb41ceeae397a70712a68af5">c_str</a> () const</td></tr>
<tr class="separator:a3fd9fc51eb41ceeae397a70712a68af5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Char&gt;<br />
class fmt::v5::basic_cstring_view&lt; Char &gt;</h3>

<p>\rst A reference to a null-terminated string. It can be constructed from a C string or <code>std::string</code>.</p>
<p>You can use one of the following typedefs for common character types:</p>
<p>+------------&mdash;+--------------------------&mdash;+ | Type | Definition | +===============+=============================+ | cstring_view | basic_cstring_view&lt;char&gt; | +------------&mdash;+--------------------------&mdash;+ | wcstring_view | basic_cstring_view&lt;wchar_t&gt; | +------------&mdash;+--------------------------&mdash;+</p>
<p>This class is most useful as a parameter type to allow passing different types of strings to a function, for example::</p>
<p>template &lt;typename... Args&gt; std::string format(cstring_view format_str, const Args &amp; ... args);</p>
<p>format("{}", 42); format(std::string("{}"), 42); \endrst </p>

<p class="definition">Definition at line <a class="el" href="posix_8h_source.html#l00093">93</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad21a04a526524ac3477761399a792fda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad21a04a526524ac3477761399a792fda">&#9670;&nbsp;</a></span>basic_cstring_view() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html">fmt::v5::basic_cstring_view</a>&lt; Char &gt;::<a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html">basic_cstring_view</a> </td>
          <td>(</td>
          <td class="paramtype">const Char *&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructs a string reference object from a C string. </p>

<p class="definition">Definition at line <a class="el" href="posix_8h_source.html#l00099">99</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<a id="a56c61688f005a3f7495d45b443d78d1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56c61688f005a3f7495d45b443d78d1c">&#9670;&nbsp;</a></span>basic_cstring_view() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html">fmt::v5::basic_cstring_view</a>&lt; Char &gt;::<a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html">basic_cstring_view</a> </td>
          <td>(</td>
          <td class="paramtype">const std::basic_string&lt; Char &gt; &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>\rst Constructs a string reference from an <code>std::string</code> object. \endrst </p>

<p class="definition">Definition at line <a class="el" href="posix_8h_source.html#l00106">106</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3fd9fc51eb41ceeae397a70712a68af5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3fd9fc51eb41ceeae397a70712a68af5">&#9670;&nbsp;</a></span>c_str()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Char &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const Char* <a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html">fmt::v5::basic_cstring_view</a>&lt; Char &gt;::c_str </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the pointer to a C string. </p>

<p class="definition">Definition at line <a class="el" href="posix_8h_source.html#l00109">109</a> of file <a class="el" href="posix_8h_source.html">posix.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>sdk_core/include/third_party/spdlog/spdlog/fmt/bundled/<a class="el" href="posix_8h_source.html">posix.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacefmt.html">fmt</a></li><li class="navelem"><a class="el" href="namespacefmt_1_1v5.html">v5</a></li><li class="navelem"><a class="el" href="classfmt_1_1v5_1_1basic__cstring__view.html">basic_cstring_view</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>
